package com.xiaoc.bulldozer.common.service.impl;

import com.xiaoc.bulldozer.common.dao.ActionMapper;
import com.xiaoc.bulldozer.common.model.Action;
import com.xiaoc.bulldozer.common.service.ActionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Action Service 实现类
 * 
 * @author CodeGenerator
 * 
 * @date 2014-05-20 17:26:51
 * 
 */
@Service("actionService")
public class ActionServiceImpl implements ActionService {

	@Resource
	private ActionMapper actionMapper;

	/**
	 * 获取所有Action列表
	 * 
	 * @return
	 */
	@Override
	public List<Action> getAll() {
		return actionMapper.getAll();
	}

    @Override
	public List<Action> getActionListByIds(List<Integer> actionIdList) {
		return actionMapper.getActionListByIds(actionIdList);
	}

	@Override
	public Integer getVaildActionCountByIds(Integer[] actionIdArr) {
		return actionMapper.getVaildActionCountByIds(actionIdArr);
	}

}
